<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

<html>
<head>

<link href="resources/stylesheet.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="script/focus-on-enter.js"></script>


<title>..:: MoxiRPT - Sistema de Gerência de Dados :: Cadastro
de Digitações: Formulário 2 - História e avaliação do paciente</title>

</head>

<body onload="fadePanel()">

<f:view>

	<h:panelGrid columns="1" styleClass="fundoLogo" width="100%">
		<h:outputText
			value="Cadastro de Digitações: Formulário 2 - História e avaliação do paciente"
			styleClass="titulo" />
	</h:panelGrid>


	<table border="0" width="100%">
		<thead>



		</thead>

		<tbody>
			<tr valign="middle">

				<td width="15%" />
				<td width="70%"><a4j:form id="formDigitacao" focus="digitacao">

					<h:panelGrid columns="2" width="700" columnClasses="column1Dig, column2Dig">
					
						<h:outputLabel for="digitacao" value="Digitação: "
							styleClass="rotulo" />
						<h:selectOneMenu id="digitacao"
							value="#{cadastroHistoriaMB.historiaVO.digitacao}"
							onkeydown="enterTab(event)">
							<f:selectItem itemValue="1" itemLabel="1" />
							<f:selectItem itemValue="2" itemLabel="2" />
						</h:selectOneMenu>

						<h:outputLabel for="pid" value="PID: " styleClass="rotulo" />
						<h:inputText id="pid" value="#{cadastroHistoriaMB.pid}"
							onkeydown="enterTab(event)" />
							
					</h:panelGrid>



					<rich:tabPanel id="historiaTabPanel" switchType="client"
						selectedTab="#{cadastroHistoriaMB.selectedTab}">

						<rich:tab id="pagina1" label="Página 1">

							<h:panelGrid columns="2" width="100%" columnClasses="columnTexto, columnForm" cellspacing="10">

								<h:outputLabel styleClass="rotulo"
									value="1. Morador de rua no último ano:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="moradorderua"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.moradorDeRua}"
									title="Morador de rua no último ano">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputText styleClass="rotulo"
									value="2. Esteve desempregado nos últimos 24 meses:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="desempregadoult24meses"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.desempregadoUlt24Meses}"
									title="Esteve desempregado nos últimos 24 meses">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="3. Usou drogas injetáveis no último ano:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="usodrogasinj"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.usoDrogasInj}"
									title="Usou drogas injetáveis no último ano">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="4. Usou drogas não injetáveis no último ano:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="usodrogasnaoinj"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.usoDrogasNaoInj}"
									title="Usou drogas não injetáveis no último ano">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="5a. Faz ou já fez uso de bebidas alcoólicas:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="usobebidaalcool"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.usoBebidaAlcool}"
									title="Faz ou já fez uso de bebidas alcoólicas">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="1" itemLabel="1 = Faz uso" />
									<f:selectItem itemValue="2" itemLabel="2 = Não faz uso" />
									<f:selectItem itemValue="3" itemLabel="3 = Fez uso > 1 ano" />
									<f:selectItem itemValue="4" itemLabel="4 = Fez uso < 1 ano" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="5b. Sente necessida de parar de beber:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="necessidadepararbeber"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.necessidadePararBeber}"
									title="Sente necessida de parar de beber">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="5c. As pessoas criticam o seu uso de bebida alcoólica:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="criticausobebid0a"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.criticaUsoBebida}"
									title="As pessoas criticam o seu uso de bebida alcoólica">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="5d. Se sente mal ou culpado por beber:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="culpadoporbeber"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.culpadoPorBeber}"
									title="Se sente mal ou culpado por beber">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="5e. Costuma beber pela manha:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="bebepelamanha"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.bebePelaManha}"
									title="Costuma beber pela manha">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="6. Esteve na prisao ou foi detido nos últimos dois anos:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="estevenaprisao"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.esteveNaPrisao}"
									title="Esteve na prisao ou foi detido nos últimos dois anos">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="7. Foi internado em um hospital geral nos últimos dois anos:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="internado"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.internado}"
									title="Foi internado em um hospital geral nos últimos dois anos">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="8. Teve contato com paciente com TB conhecido:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="contatopactb"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.contatoPacTb}"
									title="Teve contato com paciente com TB conhecido">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo" value="8a. Quando:" />

								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText style="width : 100%;" id="quandocontatopactb"
										value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.quandoContatoPacTb}"
										onkeydown="enterTab(event)">
										<rich:jQuery selector="#quandocontatopactb"
											query="mask('9999')" timing="onload" />
									</h:inputText>
								</a4j:loadScript>




								<h:outputLabel styleClass="rotulo"
									value="8b. Já realizou o teste tuberculínico (PPD):" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="testeppd"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.testePpd}"
									title="Já realizou o teste tuberculínico (PPD)">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="9. Recebeu profilaxia:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="profilaxia"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.profilaxia}"
									title="Recebeu profilaxia">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>


							</h:panelGrid>

							<table align="right" width="100%">
								<tr>
									<td align="right"><a4j:commandButton
										value="Próxima Página"
										action="#{cadastroHistoriaMB.alterarTab1para2_action}"
										reRender="historiaTabPanel" id="proxpg1"
										ignoreDupResponses="true" onkeydown="onclick()"
										focus="#{cadastroHistoriaMB.focus}" /></td>
								</tr>
							</table>

						</rich:tab>



						<rich:tab id="pagina2" label="Página 2">


							<h:panelGrid columns="2" width="100%">
								

								<h:outputLabel styleClass="rotulo"
									value="10. Nível de educação:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="niveled"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.nivelEd}"
									title="Nível de educação">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="1" itemLabel="1 = Analfabeto" />
									<f:selectItem itemValue="2" itemLabel="2 = Sem educação formal" />
									<f:selectItem itemValue="3"
										itemLabel="3 = Não completou o 1° grau" />
									<f:selectItem itemValue="4" itemLabel="4 = Completou o 1° grau" />
									<f:selectItem itemValue="5"
										itemLabel="5 = Não completou o 2° grau" />
									<f:selectItem itemValue="6" itemLabel="6 = Completou o 2° grau" />
									<f:selectItem itemValue="7"
										itemLabel="7 = Não completou o nível superior" />
									<f:selectItem itemValue="8"
										itemLabel="8 = Completou o nível superior" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="11. Alguma vez fumou cigarro:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="fumoucigarro"
									value="#{cadastroHistoriaMB.historiaVO.historiaFatorRiscoVO.fumouCigarro}"
									title="Fumoucigarro">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Atual" />
									<f:selectItem itemValue="2"
										itemLabel="2 = Deixou de fumar < 1 ano" />
									<f:selectItem itemValue="3"
										itemLabel="3 = Deixou de fumar > 1 ano" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="12. Fez tratamento para TB ativa antes:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="tratamentotb"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagTbVO.tratamentoTb}"
									title="Fez tratamento para TB ativa antes">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="13. Qual o mês e ano do diagnóstico mais recente:" />




								<h:outputLabel styleClass="rotulo"
									value="14. Completou o tratamento prescrito para TB ativa:" />

								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="completoutrattb"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagTbVO.completouTratTb}"
									title="Completou o tratamento prescrito para TB ativa">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>


								<h:outputLabel styleClass="rotulo"
									value="15. Já teve doença hepática:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="doencahep"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.doencaHep}"
									title="Já teve doença hepática">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo" value="16. Especifique:" />

								<h:inputText style="width : 100%;" id="espdoencahep"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.espDoencaHep}"
									onkeydown="enterTab(event)" />


								<h:outputLabel styleClass="rotulo"
									value="17. Já teve diabetes mellitus (Tipo I ou II):" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="diabetes"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.diabetes}"
									title="Já teve diabetes mellitus (Tipo I ou II)">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="18. Já teve neuropatia periférica:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="neuropatiaperif"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.neuropatiaPerif}"
									title="Já teve neuropatia periférica">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />
								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo"
									value="19. Já teve malignidade:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="malignidade"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.malignidade}"
									title="Já teve malignidade">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo" value="20. Especifique:" />

								<h:inputText style="width : 100%;" id="espmalignidade"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.espMalignidade}"
									onkeydown="enterTab(event)" />


								<h:outputLabel styleClass="rotulo"
									value="21. Alguma doença não mencionada:" />
								<h:inputText style="width : 100%;" id="doencanaomenc"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.doencaNaoMenc}"
									onkeydown="enterTab(event)" />

								<h:outputLabel styleClass="rotulo"
									value="22. Já teve qualquer história de doença definidora da aids:" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="doencadefhiv"
									value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.doencaDefHiv}"
									title="Já teve qualquer história de doença definidora da aids">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
									<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

								</h:selectOneMenu>

								<h:outputLabel styleClass="rotulo" value="23. Especifique:" />
								<h:panelGrid id="panelAids" columns="2" cellpadding="0">

									<h:outputLabel styleClass="rotulo" value="AIDS Código" />
									<h:outputLabel styleClass="rotulo" value="MM/AAAA" />

									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="aidscod1"
											value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.aidsCod1}">
											<rich:jQuery selector="#aidscod1" query="mask('99')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>


									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="mesanoaids1" value="#{cadastroHistoriaMB.mesAnoAids1}">
											<rich:jQuery selector="#mesanoaids1" query="mask('99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>

									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="aidscod2"
											value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.aidsCod2}">
											<rich:jQuery selector="#aidscod2" query="mask('99')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>

									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="mesanoaids2" value="#{cadastroHistoriaMB.mesAnoAids2}">
											<rich:jQuery selector="#mesanoaids2" query="mask('99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>

									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="aidscod3"
											value="#{cadastroHistoriaMB.historiaVO.historiaDiagConcVO.aidsCod3}">
											<rich:jQuery selector="#aidscod3" query="mask('99')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>

									<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
										<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
											id="mesanoaids3" value="#{cadastroHistoriaMB.mesAnoAids3}">
											<rich:jQuery selector="#mesanoaids3" query="mask('99/9999')"
												timing="onload" />
										</h:inputText>
									</a4j:loadScript>

								</h:panelGrid>

							</h:panelGrid>
							
							

							<table align="right" width="100%">
								<tr>
									<td align="right"><a4j:commandButton
										value="Próxima Página"
										action="#{cadastroHistoriaMB.alterarTab2para3_action}"
										reRender="historiaTabPanel" id="proxpg2"
										ignoreDupResponses="true" onkeydown="onclick()"
										focus="#{cadastroHistoriaMB.focus}" /></td>
								</tr>
							</table>

						</rich:tab>


						<rich:tab id="pagina3" label="Página 3">


							<h:panelGrid columns="2" width="100%">
								

								<h:outputLabel styleClass="rotulo" value="24. Altura:" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
										id="altura"
										value="#{cadastroHistoriaMB.historiaVO.historiaInfoCliVO.altura}">
								<rich:jQuery selector="#altura" query="mask('999')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>
								


								<h:outputLabel styleClass="rotulo" value="25. Peso:" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
										id="peso"
										value="#{cadastroHistoriaMB.historiaVO.historiaInfoCliVO.peso}">
										<rich:jQuery selector="#peso" query="mask('999')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>


								<h:outputLabel styleClass="rotulo"
									value="25. Frequência cardíaca:" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
										id="freqcard"
										value="#{cadastroHistoriaMB.historiaVO.historiaInfoCliVO.freqCard}">
										<rich:jQuery selector="#freqcard" query="mask('999')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>

								<h:outputLabel styleClass="rotulo" value="26. Febre:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="febre"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.febre.resposta}"
										title="Febre">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>
									<h:outputLabel styleClass="rotulo" value="Grau:" />


									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="febregrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.febre.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="27. Sudorese:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="sudorese"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.sudorese.resposta}"
										title="Sudorese">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="sudoresegrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.sudorese.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="28. Tosse:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tosse"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tosse.resposta}"
										title="Tosse">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tossegrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tosse.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo"
									value="29. Tosse é produtiva:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tosseprod"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tosseProd.resposta}"
										title="Tosse é produtiva">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tosseprodgrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tosseProd.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="30. Hemoptise:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="hemoptise"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.hemoptise.resposta}"
										title="Hemoptise">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="hemoptisegrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.hemoptise.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="31. Erupção cutânea:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="erupcut"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.erupCut.resposta}"
										title="Erupção cutânea">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="erupcutgrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.erupCut.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="32. Prurido:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="prurido"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.prurido.resposta}"
										title="Prurido">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="pruridograu"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.prurido.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="33. Icterícia:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="ictericia"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.ictericia.resposta}"
										title="Icterícia">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="ictericiagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.ictericia.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="34. Náusea:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="nausea"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.nausea.resposta}"
										title="Náusea">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="nauseagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.nausea.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="35. Vômito:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="vomito"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.vomito.resposta}"
										title="Vômito">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="vomitograu"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.vomito.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>
									
								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="36. Diarréia:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="diarreia"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.diarreia.resposta}"
										title="Diarréia">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="diarreiagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.diarreia.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="37. Perda de apetite:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="perdaapetite"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.perdaApetite.resposta}"
										title="Perda de apetite">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="perdaapetitegrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.perdaApetite.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="38. Paladar alterado:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="paladaralt"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.paladarAlt.resposta}"
										title="Paladar alterado">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="paladaraltgrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.paladarAlt.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo"
									value="40. Problemas de visão:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="probvisao"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.probVisao.resposta}"
										title="Problemas de visão">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="probvisaograu"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.probVisao.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="41. Especifique:" />

								<h:inputText onkeydown="enterTab(event)" style="width : 100%;"
									id="espprobvisao"
									value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.espProbVisao}"
									title="Especifique" />


								<h:outputLabel styleClass="rotulo"
									value="42. Hipoestesia/parestesia:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="hipoestesia"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.hipoestesia.resposta}"
										title="Hipoestesia/parestesia">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="hipoestesiagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.hipoestesia.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="43. Dor de cabeça:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorcabeca"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorCabeca.resposta}"
										title="Dor de cabeça">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorcabecagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorCabeca.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

							</h:panelGrid>

							<table width="100%">
								<tr>
									<td align="right"><a4j:commandButton
										value="Próxima Página"
										action="#{cadastroHistoriaMB.alterarTab3para4_action}"
										reRender="historiaTabPanel" id="proxpg3"
										ignoreDupResponses="true" onkeydown="onclick()"
										focus="#{cadastroHistoriaMB.focus}" /></td>
								</tr>
							</table>
						</rich:tab>

						<rich:tab id="pagina4" label="Página 4">


							<h:panelGrid columns="2">
								

								<h:outputLabel styleClass="rotulo" value="44. Tonteira:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tonteira"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tonteira.resposta}"
										title="Tonteira">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="tonteiragrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.tonteira.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="45. Insônia:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="insonia"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.insonia.resposta}"
										title="Insonia">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="insoniagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.insonia.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo"
									value="46. Dor nas articulações:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorart"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorArt.resposta}"
										title="Dor nas articulações">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorartgrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorArt.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo"
									value="47. Desconforto/dor abdominal:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorabd"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorAbd.resposta}"
										title="Desconforto/dor abdominal">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="dorabdgrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.dorAbd.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="48. Palpitacao:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="palpitacao"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.palpitacao.resposta}"
										title="Palpitacao">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="palpitacaograu"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.palpitacao.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="49. Fadiga:" />
								<h:panelGrid width="100%" columns="3" cellspacing="0">
									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="fadiga"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.fadiga.resposta}"
										title="Fadiga">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="0" itemLabel="0 = Nao" />
										<f:selectItem itemValue="1" itemLabel="1 = Sim" />
										<f:selectItem itemValue="9" itemLabel="9 = Desconhecido" />

									</h:selectOneMenu>

									<h:outputLabel styleClass="rotulo" value="Grau:" />

									<h:selectOneMenu onkeydown="enterTab(event)"
										style="width : 100%;" id="fadigagrau"
										value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.fadiga.grau}"
										title="Grau">
										<f:selectItem itemValue="-1" itemLabel="" />
										<f:selectItem itemValue="1" itemLabel="1" />
										<f:selectItem itemValue="2" itemLabel="2" />
										<f:selectItem itemValue="3" itemLabel="3" />
										<f:selectItem itemValue="4" itemLabel="4" />
									</h:selectOneMenu>

								</h:panelGrid>

								<h:outputLabel styleClass="rotulo" value="50. Outra:" />
								<h:inputText style="width : 100%;" id="outra"
									value="#{cadastroHistoriaMB.historiaVO.historiaSintomasVO.outra}"
									title="Outra" onkeydown="enterTab(event)" />

								<h:outputLabel styleClass="rotulo"
									value="51. Olho esquerdo(OE):" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText style="width : 100%;" id="olhoesq"
										value="#{cadastroHistoriaMB.historiaVO.historiaExVisaoVO.olhoEsq}"
										title="Olhoesq" onkeydown="enterTab(event)">
										<rich:jQuery selector="#olhoesq" query="mask('99-999')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>

								<h:outputLabel styleClass="rotulo" value="52. Olho direito(OD):" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText style="width : 100%;" id="olhodir"
										value="#{cadastroHistoriaMB.historiaVO.historiaExVisaoVO.olhoDir}"
										title="Olhodir" onkeydown="enterTab(event)">
										<rich:jQuery selector="#olhodir" query="mask('99-999')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>

								<h:outputLabel styleClass="rotulo"
									value="53. Visão colorida (Ishihara):" />
								<h:selectOneMenu onkeydown="enterTab(event)"
									style="width : 100%;" id="visaocol"
									value="#{cadastroHistoriaMB.historiaVO.historiaExVisaoVO.visaoCol}"
									title="Visão colorida (Ishihara)">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="1" itemLabel="1 = Normal" />
									<f:selectItem itemValue="2" itemLabel="2 = Anormal" />
									<f:selectItem itemValue="8" itemLabel="8 = Não Feito" />
								</h:selectOneMenu>



								<h:outputLabel styleClass="rotulo" value="54. Esquerdo:" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText style="width : 100%;" id="numplacasperdesq"
										value="#{cadastroHistoriaMB.historiaVO.historiaExVisaoVO.numPlacasPerdEsq}"
										title="Esquerdo" onkeydown="enterTab(event)">
										<rich:jQuery selector="#numplacasperdesq" query="mask('99')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>

								<h:outputLabel styleClass="rotulo" value="55. Direito:" />
								<a4j:loadScript src="/script/jquery.maskedinput-1.2.1.js">
									<h:inputText style="width : 100%;" id="numplacasperddir"
										value="#{cadastroHistoriaMB.historiaVO.historiaExVisaoVO.numPlacasPerdDir}"
										title="Direito" onkeydown="enterTab(event)">
										<rich:jQuery selector="#numplacasperddir" query="mask('99')"
											timing="onload" />
									</h:inputText>
								</a4j:loadScript>

								<h:outputLabel styleClass="rotulo"
									value="56. Tomando qualquer medicação (concomitante) durante as duas semanas anteriores:" />
								<h:selectOneMenu onkeydown="enterTab(event)" id="usomedicacao"
									style="width : 100%;"
									value="#{cadastroHistoriaMB.historiaVO.historiaOutraAvVO.usoMedicacao}"
									title="Tomando qualquer medicação (concomitante) durante as duas semanas anteriores">
									<f:selectItem itemValue="-1" itemLabel="" />
									<f:selectItem itemValue="0" itemLabel="0 = Nao" />
									<f:selectItem itemValue="1" itemLabel="1 = Sim" />
								</h:selectOneMenu>

							</h:panelGrid>

							<h:panelGroup id="botoesCadastro"
								style="display:block; text-align:left" rendered="true">

								<a4j:commandButton value="Salvar"
									action="#{cadastroHistoriaMB.cadastrarDig_action}"
									ignoreDupResponses="true"
									reRender="panelResultado, historiaTabPanel"
									onclick="showPanel()" />

								<a4j:commandButton value="Cancelar"
									action="#{cadastroHistoriaMB.cancelarForm_action}"
									ignoreDupResponses="true" reRender="historiaTabPanel"
									focus="#{cadastroHistoriaMB.focus}" onclick="fadePanel()" />

							</h:panelGroup>


						</rich:tab>



					</rich:tabPanel>
				</a4j:form> <rich:panel id="panelResultado" styleClass="box">

					<h:panelGroup id="panelGroupResultado">

						<h:outputText value="Status: " />

						<a4j:status id="commonstatus" startText="Processando... "
							stopText="Concluído." />

						<br>

						<h:outputText id="mensagem" styleClass="rotuloSucesso"
							value="#{cadastroHistoriaMB.mensagemSucesso}" />
						<h:outputText id="mensagemErro" styleClass="rotuloErro"
							value="#{cadastroHistoriaMB.mensagemErro}" />

					</h:panelGroup>

					<rich:effect name="showPanel" for="panelResultado" type="Appear" />
					<rich:effect name="fadePanel" for="panelResultado" type="Fade" />

				</rich:panel></td>
				<td width="15%" /></td>
			</tr>
		</tbody>
	</table>


</f:view>

</body>

</html>